home *** CD-ROM | disk | FTP | other *** search
/ Collection of Internet / Collection of Internet.iso / msdos / lynx / source / doslynx / src / textatt7.cpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-10-25  |  1.3 KB  |  34 lines

  1. //    Copyright (c) 1994, University of Kansas, All Rights Reserved
  2. //
  3. //    Class:        TextAttribute
  4. //    Include File:    textattr.h
  5. //    Purpose:    Implement a way of giving a WWW style of attribute to
  6. //            a segment of a stream of data.
  7. //    Remarks/Portability/Dependencies/Restrictions:
  8. //        The difference between the start and end of an attribute is
  9. //        called extent.  Extent can be considered a correlation to
  10. //        calling strlen on a string.
  11. //        An extent of 0 means no duration, 1 means 1 byte, etc...
  12. //        A negative extent is equivalent to 0 extent.
  13. //        Once an attribute type is set by the constructor, it can
  14. //        never be changed.
  15. //    Revision History:
  16. //        02-01-94    created
  17. //        02-09-94    Split all members into seperate files.
  18. #include"textattr.h"
  19.  
  20. void TextAttribute::Begin(const signed long int sli_Offset)    {
  21. //    Purpose:    Set the offset into a stream.
  22. //    Arguments:    sli_Offset    The offset into the stream.
  23. //    Return Value:    void
  24. //    Remarks/Portability/Dependencies/Restrictions:
  25. //        Provides a mechanism for change.
  26. //        This in no way changes the value of the extent, and the
  27. //        extent will actualy stay in place and grow or shrink with
  28. //        the new beginning offset unless specifically adjusted also.
  29. //    Revision History:
  30. //        02-01-94    created.
  31.  
  32.     sli_StreamOffset = sli_Offset;
  33. }
  34.